return {
    "saghen/blink.cmp",
    version = "*",
    dependencies = {
        "rafamadriz/friendly-snippets",
    },
    event = "VeryLazy",
    -- opts = {},
    opts = {
        completion = {
            -- 自动显示帮助文档
            documentation = {
                auto_show = true,
            },
        },
        keymap = {
            preset = "super-tab",
        },
        -- 补全内容的来源
        sources = {
            default = { "path", "snippets", "buffer", "lsp" },
        },
        cmdline = {
            sources=function()
               local cmd_type=vim.fn.getcmdtype()
                if cmd_type == "/" or cmd_type == "?" then
                    return { "buffer" }
                end
                if cmd_type == ":" then
                    return { "cmdline" }
                end
                return {}
            end,
           keymap = {
             -- 选择并接受预选择的第一个
             -- ["<CR>"] = { "select_and_accept", "fallback" },
            preset = "super-tab",
           },
           completion = {
             -- 自动显示补全窗口
             menu = { auto_show = true },
             -- 不在当前行上显示所选项目的预览
             ghost_text = { enabled = false },
           },
        },

    }
}

